﻿using System;

namespace SeniorObject
{
    class Student
    {
        public string name { get; set; }
        public int age { get; set; }
        public int id { get; set; }
        public override string ToString()
        {
            return name + "   " + age + "   " + id;
        }

        public static void Show()
        {
            Console.WriteLine("hello");

        }
        public virtual bool Equals(object obj)
        {
            Student others = obj as Student;
            if (others == null)
                return false;
            return id == others.id && name == others.name && age == others.age;
        }

    }
}
